#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    // 默认隐藏状态
    isShow = false;
    ui->widget->setVisible(isShow);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_btnSide_clicked()
{
    if(isShow){
        isShow = false;
        ui->btnSide->setText(">>");
    } else {
        isShow = true;
        ui->btnSide->setText("<<");
    }
    ui->widget->setVisible(isShow);
}
